
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>Tesil
	</title>
	<?php
		
		echo $this->Html->css(array('styles',
																'jquery.bxslider',
																'gridNavigation',
																'visorVideos',
																'flexslider',
																'demo'));
		
		echo $this->Html->script(array('jquery','jquery.bxslider', 'jquery.flexslider')); 

   
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
	<?php echo $this->element('header'); ?> <!-- Header  -->
	<body>
		<div id="super">
		
		<script>
        $(document).ready(function(){
        	$("#wrappers").css({"background-color" : "#FFF"});

					$('.slide-h').bxSlider({
					  mode: 'fade',
					  auto: 'true',
					  pager: 'none',
					  responsive: 'false',
					  controls: 'none'
					});
					// The slider being synced must be initialized first
					$('#carousel').flexslider({
						animation: "slide",
						controlNav: false,
						animationLoop: false,
						slideshow: false,
						itemWidth: 110,
						itemMargin: 5,
						asNavFor: '#slider'
					});

					$('#slider').flexslider({
						animation: "slide",
						controlNav: false,
						animationLoop: false,
						slideshow: false,
						sync: "#carousel"
					});
	  
					function ready(player_id) {
						var froogaloop = $f(player_id);
						froogaloop.addEvent('play', function(data) {
							$('.flexslider').flexslider("pause");
						});
						froogaloop.addEvent('pause', function(data) {
							$('.flexslider').flexslider("play");
						});
					}

					// Call fitVid before FlexSlider initializes, so the proper initial height can be retrieved.
					$(".flexslider").fitVids().flexslider({
							animation: "slide",
							useCSS: false,
							animationLoop: false,
							smoothHeight: true,
							before: function(slider) {
								$f(player).api('pause');
							}
					});
				});
    </script>
	    
	    <div id="wrappers">       
	        <div class="contenido">
	        	<?php echo $this->fetch('content'); ?>
	        </div>
	        
	    </div>
		<?php echo $this->element('footer'); ?> <!-- Footer  -->
	    

	  </div><!-- SUPER  --> 
	</body>
</html>
